package com.csun.cmny.provider.service.impl;

import com.csun.cmny.provider.dao.CacBaseBigItemMapper;
import com.csun.cmny.provider.pojo.CacBaseBigItem;
import com.csun.cmny.provider.service.CacBaseBigItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("CacBaseBigItemService")
public class CacBaseBigItemServiceImpl implements CacBaseBigItemService {
    @Resource
    CacBaseBigItemMapper cacBaseBigItemMapper;

    @Override
    public int insert(CacBaseBigItem cacBaseBigItem) {
        return cacBaseBigItemMapper.insertSelective(cacBaseBigItem);
    }

    @Override
    public int update(CacBaseBigItem cacBaseBigItem) {
        return cacBaseBigItemMapper.updateByPrimaryKeySelective(cacBaseBigItem);
    }

    @Override
    public CacBaseBigItem selectCbiById(Integer bigItemId) {
        return cacBaseBigItemMapper.selectByPrimaryKey(bigItemId);
    }

    @Override
    public int delById(Integer minorItemId) {
        return cacBaseBigItemMapper.deleteByPrimaryKey(minorItemId);
    }

    @Override
    public CacBaseBigItem selectByCbi(CacBaseBigItem cacBaseBigItem) {
        return cacBaseBigItemMapper.selectByCbi(cacBaseBigItem);
    }

    @Override
    public int delByTypeId(Integer cacTypeId) {
        return cacBaseBigItemMapper.delByTypeId(cacTypeId);
    }

    @Override
    public CacBaseBigItem selectOneById(Integer bigItemId) {
        return cacBaseBigItemMapper.selectOneById(bigItemId);
    }
}
